actor ImpBoy : DoomImp_2
{
  obituary "%o was shut down by deep imp."
  health 50
  radius 20
  height 56
  mass 100
  speed 8
  painchance 200
  seesound "imp/sight"
  attacksound "flak/fire"
  painsound "imp/pain"
  deathsound "imp/death"
  MONSTER
  +FLOORCLIP
  +MISSILEMORE
  Species "Imp"
  states
  {
  Spawn:
    TRO2 A 0 
    TRO2 A 0 Thing_SetSpecial(0,226,613,0,random(8,16))
    POSS A 0 A_GiveInventory("XPAmount", random(8, 16))
    POSS P 0 ACS_ExecuteAlways(651,0,0,0,0)
    TRO2 AB 10 A_Look
    goto Spawn+4
  See:
    TRO2 AABBCCDD 4 A_Chase
    loop
  Melee:
    TRO2 EF 8 A_FaceTarget
    TRO2 G 6 A_CustomComboAttack("DoomImpBall_2",32,5,"imp/melee")
    goto See
  Missile:
    TRO2 E 10 A_FaceTarget
    TRO2 FFFF 5 A_CustomMissile("DoomImpBall_2",30,0,0)
    TRO2 E 10 A_FaceTarget
    goto See
  Pain:
    TRO2 G 3
    TRO2 G 3 A_Pain
	TRO2 G 0 A_AlertMonsters
    goto See
  Death:
    TRO2 H 10
	TRO2 I 0 A_JumpIfHealthLower(random(-500,-110),"XDeath")
    TRO2 I 8
    TRO2 J 8 A_Scream
    TRO2 K 6
    TRO2 L 6 A_NoBlocking
    TRO2 L 0 ACS_ExecuteAlways(648,0,0,0,0)
    TRO2 M -1
    stop
  XDeath:
    TRO2 N 5
    TRO2 O 5 A_XScream
    TRO2 P 5
    TRO2 Q 5 A_NoBlocking
    TRO2 Q 0 ACS_ExecuteAlways(648,0,0,0,0)
    TRO2 RST 5
    TRO2 U -1
    stop
  Res:
    IMPB NN 115
	IMPB N 0 A_Jump(192, "Res")
    IMPB N 5 A_PlaySound("imp/sight")
    IMPB N -1 A_SpawnItemEx("DoomImpRes",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,0)
    stop
  Raise:
    IMPB NMLKJHI 5
    goto See
  }
}
ACTOR UziGuy
{
  Health 40
  PainChance 200
  Speed 8
  Radius 20
  Height 56
  Monster
  MaxStepHeight 32
  MaxDropoffHeight 32
  SeeSound ""
  AttackSound ""
  PainSound "peasant/pain"
  DeathSound "peasant/death"
  HitObituary "%o was punched in the face by a peasant."
  Obituary "%o was shot down by a Peasant."
  dropitem "MiniUziPickup" 96
  dropitem "SMGAmmo" 128
  dropitem "HandgunAmmo" 128
  States
  {
  Spawn:
    POSS A 0 
    POSS A 0 Thing_SetSpecial(0,226,613,0,random(10,20))
    POSS A 0 A_GiveInventory("XPAmount", random(10, 20))
    PEUU A 4 A_Look
    goto Spawn+3
  See:
    PEUU AABBCCDD 4 A_Chase
    Loop
  Melee:
    PEAS E 0 A_FaceTarget
    PEAS E 10 A_PlaySound("skeleton/swing")
    PEAS F 0 A_PlaySound("skeleton/melee")
    PEAS F 8 A_CustomMeleeAttack(2*random[PeasantAttack](1,5)+2)
    PEAS E 8
    Goto See
  Missile:
    PEUU E 10 A_FaceTarget
    PEUU F 0 A_PlaySound("uzi/fire",CHAN_WEAPON)
    PEUU P 2 Bright A_CustomBulletAttack(15,0,1,3,"BulletPuff")
    PEUU F 2 A_CPosRefire
    Goto Missile+1
  Pain:
    PEUU O 3
    PEUU O 3 A_Pain
	TNT1 G 0 A_AlertMonsters
    Goto See
  Wound:
    PEUU G 5
    PEUU H 10 A_GetHurt
    PEUU I 6
    Goto Wound+1
  Death:
    PEUU G 5
    PEUU H 5 A_Scream
    PEUU I 6
    PEUU J 5 A_NoBlocking
    PEUU J 0 ACS_ExecuteAlways(648,0,0,0,0)
    PEUU K 5
    PEUU L 6
    PEUU M 8
    PEUU N -1
    Stop
  }
}
